MissionManager

Mission manager peripheral interface for drones.

Allows to:

  • list missions present on the drone,
  • know the state of each mission,
  • load a specific mission and activate it,
  • unload a mission,
  • send and receive messages to a mission.
Note that this peripheral may be unsupported, depending on the drone model and firmware version.

This peripheral can be obtained from a drone using:

drone.getPeripheral(MissionManager.class)

See also

Peripheral.Provider

Types

Link copied to clipboard
class Message
Message exchanged with a mission.

Functions

Link copied to clipboard
abstract fun activate(@NonNull uid: String)
Activates the mission specified by its uid.
Link copied to clipboard
abstract fun deactivate()
Deactivates the currently active mission.
Link copied to clipboard
Retrieves the latest message received from the drone.
Link copied to clipboard
abstract fun load(@NonNull uid: String)
Requests the drone to load the mission specified by its uid.
Link copied to clipboard
Lists all missions present on the drone.
Link copied to clipboard
abstract fun sendMessage(@NonNull message: MissionManager.Message)
Sends a message to a mission.
Link copied to clipboard
Informs about a mission which would be relevant to activate now.
Link copied to clipboard
abstract fun unload(@NonNull uid: String)
Requests the drone to unload the mission specified by its uid.